package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description = "t_sys_config")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_sys_config")
public class SysConfig {
    /**
     * 主键ID
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 配置键
     */
    @TableField(value = "config_key")
    @ApiModelProperty(value = "配置键")
    private String configKey;

    /**
     * 配置名
     */
    @TableField(value = "config_name")
    @ApiModelProperty(value = "配置名")
    private String configName;

    /**
     * 内容类型
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "内容类型")
    private String type;

    /**
     * 协议内容
     */
    @TableField(value = "config_value")
    @ApiModelProperty(value = "协议内容")
    private String configValue;

    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date updatedTime;

    /**
     * 版本号
     */
    @ApiModelProperty("版本号")
    @TableField("version")
    @Version
    private String version;
}
